<!-- upload -->
<?=load_static('js/upload/uploadify.css','js/upload/jquery.uploadify-3.1.js')?>
<!-- editor -->
<?=load_static('js/editor/baidu/ueditor.config.js','js/editor/baidu/ueditor.all.min.js');?>
<script>$(function(){ product_obj.info_mod_init(); })</script>
<div class="page-heading">
    <h3><?=$webmaster_config['title'];?></h3>
    <ul class="breadcrumb">
        <li><a href="<?=base_url()?>"><?=$webmaster_config['title'];?></a></li>
        <li>产品管理系统</li>
        <li class="active"> 产品文章管理 </li>
    </ul>
</div>
<div class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <section class="panel">
                <header class="panel-heading"> 编辑信息</header>
                <div class="panel-body">
                    <form class="form-horizontal adminex-form" id="sign_in_form" method="post">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">标题</label>
                            <div class="col-sm-8">
                                <input type="text" name="name-mod" class="form-control required" title="请输入标题" value="<?=$item['name']?>">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="inputSuccess">分类选择</label>
                            <div class="col-sm-8"><?=$ouput_select?></div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label" for="inputSuccess">其实属性</label>
                            <div class="col-sm-8">
                            	<input type="checkbox" name="is_index-mod" value="1" <?=$item['is_index']==1?'checked="checked"':''?> id="is_1" /> <label for="is_1">首页显示</label><br>
                            	<input type="checkbox" name="is_hot-mod" value="1" <?=$item['is_hot']==1?'checked="checked"':''?> id="is_2" /> <label for="is_2">热门产品</label>  
                            </div>
                        </div>
                        <?php if($model_config['product_upload_num']){?>
                        <div class="form-group">
                            <label class="col-sm-2 col-sm-2 control-label">图片上传</label>
                            <div class="col-sm-8">
                                <div class="mul_upload_0"><input type="file" name="file_upload" id="file_upload" /></div>
                                <div class="notice">(允许上传<?=$model_config['product_upload_num']?>张图片)</div>	
                                <div class="mul_upload_1">
                            		<?php 
                            		if($proid){
                            			for($i=0;$i<$model_config['product_upload_num'];$i++){?>
                            		<div class="mul_img_section">
                            			<div class="mul_img">
                            				<span class="info"><img src="<?=$item['picpath_'.$i]?>" width="150" alt="" /></span>
                            				<span class="mid"></span>		
                            				<span class="btn btn-xs btn-danger del-img-btn" data-num="<?=$i?>" data-id="<?=$proid?>" data-action="/product/info_img_del/"><i class="fa fa-minus-circle"></i></span>
                            			</div>
                            			<input type="hidden" name="mul_upload[]" value="<?=$item['picpath_'.$i]?>">                    
                            		</div>
                            		<?php 
										}
									}
									?>
                                </div>
                            </div>
                        </div>
                        <?php }?>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">详细内容</label>
                            <div class="col-sm-8"><script id="editor_0" class="editor" name="contents" style="width:100%; height:320px" type="text/plain"><?=$contents?></script></div>
                        </div>	
                        <div class="form-group">
                            <div class="col-lg-offset-2 col-lg-10">
                                <input type="hidden" name="proid" value="<?=$proid?>">
                                <input type="hidden" name="action" value="<?=base_url('product/info_mod_action/')?>" />
                                <input type="hidden" name="upload_num" value="<?=$model_config['product_upload_num']?>" />
                                <input type="submit" class="btn btn-success" value="提交" />
                                <a href="<?=base_url('product/info_list/')?>" class="btn btn-success">返回</a>
                            </div>
                        </div>
                    </form>
                </div>
            </section>
        </div>
    </div>
</div>
<script>
	
</script>
